<template>
	<view class="themeItem">
		<navigator url="/pages/list/list" class="box" v-if="!showMore">
			<image class="pic" src="/common/images/classify1.jpg" mode="aspectFill"></image>
			<view class="mask">
				明星美女
			</view>
			<view class="tab">
				三天前更新
			</view>
		</navigator>
		<navigator url="/pages/classify/classify" open-type="reLaunch" class="box more" v-if="showMore">
			<image class="pic" src="/common/images/more.jpg" mode="aspectFill"></image>
			<view class="mask">
				<uni-icons type="more-filled" size="30" color="#fff"></uni-icons>
				<view class="text" >更多</view>
			</view>

		</navigator>
	</view>
</template>

<script lang="ts" setup>
	defineProps({
		showMore:{
			type:Boolean,
			default:false		
		}
	})
</script>

<style lang="scss" scoped>
	.themeItem {
		.box {
			position: relative;
			height: 340rpx;
			border-radius: 10rpx;
			overflow: hidden;

			.pic {
				width: 100%;
				height: 100%;

			}

			.tab {
				position: absolute;
				left: 0;
				top: 0;
				font-size: 22rpx;
				line-height: 30rpx;
				padding: 6rpx 14rpx;
				border-radius: 0 0 20rpx 0;
				color: #fff;
				background: rgba(250, 129, 90, 0.7);
			}

			.mask {
				width: 100%;
				height: 70rpx;
				position: absolute;
				bottom: 0;
				left: 0;
				color: #fff;
				display: flex;
				align-items: center;
				justify-content: center;
				font-weight: 600;
				backdrop-filter: blur(10px);
				background: rgba(0, 0, 0, 0.2);
			}
		}

		.box.more {

			.mask {
				width: 100%;
				height: 100%;
				flex-direction: column;
				.text{
					color: #fff;
				}
			}
			

		}


	}
</style>